<form method="post" name="frm_SelTown" action="{$apm.baseurl}search/rstobi">
{foreach from=$Mapping item=v}
   <br /><b>{$v.SHIKUCHOUSON_NAME}</b><br>
	{foreach from=$v.TOWN_DATA item=town name="loopname"}
		{if $town.REC_CNT == 0}
			<td><input type="checkbox" disabled />{$town.CHOUMEI}({$town.REC_CNT}件)</td>
		{elseif $shopdtl.M05_TOKUCHO01 >= 0}
			<td><input type="checkbox" name="TownCd[]" value="{$town.CHOUMEI_CD}" />{$town.CHOUMEI}({$town.REC_CNT}件)</td>
		{/if}
		{if $smarty.foreach.loopname.iteration % 3 == 0}
			<br />
		{/if}
    {/foreach}
{/foreach}
<br />
<hr />
<button onclick="document.frm_SelTown.submit()">検索</button>
</form>

